文章目录

NOTE: The Discourse team only officially supports running Discourse on Ubuntu with Docker, but we know some of you will want to run it on CentOS.

  1. Run software updates:

     sudo -s
     yum update -y
     yum install -y wget git
    
  2. Enable EPEL repository so you can install some extra packages:

     cd /tmp
     wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
     sudo rpm -Uvh epel-release-6*.rpm
    
  3. Install Docker

     sudo yum -y install docker-io
    
  4. Start Docker as service

     sudo service docker start
    
  5. Configure Docker to start on startup

     sudo chkconfig docker on
    
  6. Install Discourse

     install -g docker -m 2775 -d /var/docker
     git clone https://github.com/discourse/discourse_docker.git /var/docker
     cd /var/docker/
     cp samples/standalone.yml containers/app.yml
     /var/docker/launcher bootstrap app
    
  7. Start Discourse

     /var/docker/launcher start app
    
  8. In a Browser, go to: [Your IP Address]:80

     For example: 192.168.0.10:80
    

end

文章目录